// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

//引入elementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

//引入axios
import axios from "axios";
//配置axois基础路径：每次发axios请求之前都会加上基础路径
axios.defaults.baseURL="https://www.fastmock.site/mock/8462e755b203de9463764209974cf008/pethome";
//配置axios全局属性:在.vue页面不再引入axios，直接使用this.$http获取axois对象
Vue.prototype.$http = axios;

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
